package com.zc.trendsDispatch.mapper;

import java.util.List;
import com.zc.trendsDispatch.domain.ChargeEngineRule;

/**
 * 规则策略Mapper接口
 * 
 * @author glb
 * @date 2024-03-11
 */
public interface ChargeEngineRuleMapper 
{
    /**
     * 查询规则策略
     * 
     * @param ruleId 规则策略主键
     * @return 规则策略
     */
    public ChargeEngineRule selectChargeEngineRuleByRuleId(Long ruleId);

    /**
     * 查询规则策略列表
     * 
     * @param chargeEngineRule 规则策略
     * @return 规则策略集合
     */
    List<ChargeEngineRule> selectChargeEngineRuleList(ChargeEngineRule chargeEngineRule);

    /**
     * 新增规则策略
     * 
     * @param chargeEngineRule 规则策略
     * @return 结果
     */
    int insertChargeEngineRule(ChargeEngineRule chargeEngineRule);

    /**
     * 修改规则策略
     * 
     * @param chargeEngineRule 规则策略
     * @return 结果
     */
    int updateChargeEngineRule(ChargeEngineRule chargeEngineRule);

    /**
     * 删除规则策略
     * 
     * @param ruleId 规则策略主键
     * @return 结果
     */
    int deleteChargeEngineRuleByRuleId(Long ruleId);

    /**
     * 批量删除规则策略
     * 
     * @param ruleIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteChargeEngineRuleByRuleIds(Long[] ruleIds);
}
